/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MYData.Entity.SystemModels;

namespace MYData.Entity.DomainModels
{
    [Table("tb_project_billing")]
    [Entity(TableCnName = "经费入账单表",TableName = "tb_project_billing")]
    public partial class tb_project_billing:BaseEntity
    {
        /// <summary>
       ///经费入账单主键id
       /// </summary>
       [Key]
       [Display(Name ="经费入账单主键id")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string billingId { get; set; } = new Snowflake.Core.IdWorker(1, 1).NextId().ToString();

        /// <summary>
        ///来款单位
        /// </summary>
        [Display(Name ="来款单位")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string billingUnit { get; set; }
       /// <summary>
       ///财务到账时间
       /// </summary>
       [Display(Name ="财务到账时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime billingTime { get; set; }

       /// <summary>
       ///到账金额(单位:元)
       /// </summary>
       [Display(Name ="到账金额(单位:元)")]
       [DisplayFormat(DataFormatString="10,5")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public decimal billingMoney { get; set; }

       /// <summary>
       ///银行卡号
       /// </summary>
       [Display(Name ="银行卡号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string billingBank { get; set; }

       /// <summary>
       ///摘要
       /// </summary>
       [Display(Name ="摘要")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string billingAbstract { get; set; }

       /// <summary>
       ///其他
       /// </summary>
       [Display(Name ="其他")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string billingRests { get; set; }


       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string creator { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string modifier { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? modifierTime { get; set; } = DateTime.Now;

        /// <summary>
        ///是否删除(1删除)
        /// </summary>
        [Display(Name = "是否删除(1删除)")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? isDelete { get; set; } = 0;

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? createDate { get; set; }
    }
}